package com.training.bt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.training.bt.entity.PromotionResource;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PromotionResourceMapper extends BaseMapper<PromotionResource> {
    List<PromotionResource> selectByPromotionId(Long promotionId);

    List<PromotionResource> selectByResourceId(Long resourceId);

    double discount(Long resourceId);
}